package cn.lg.soar.mvc.handler;

import cn.lg.soar.core.annotations.ApiClient;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;

/**
 * 忽略client包下的Controller映射
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
public class ClientRequestMappingHandlerMapping extends RequestMappingHandlerMapping {

        @Override
        protected boolean isHandler(Class<?> beanType) {
            if (!super.isHandler(beanType)) {
                return false;
            }
            return beanType.getAnnotation(ApiClient.class) == null;
        }
    }
